package User;

import Book.BookList;
import Operation.IOPeration;


public abstract class User {
    public String name;
    public IOPeration[] ioPerations; //没有初始化

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperations(int choice, BookList book) {
        IOPeration ioPeration = this.ioPerations[choice];
        ioPeration.work(book);
    }
}
